#include "List.h"

void TestList1()
{
	LTNode* plist = LTInit();
    LTPushBack(plist, 1);
    LTPushBack(plist, 2);
    LTPushBack(plist, 3);
    LTPushBack(plist, 4);
    LTPrint(plist);
    printf("\n");
    /*LTPopBack(plist);
    LTPrint(plist);*/
    printf("\n");

    LTPushFront(plist, 56);
    LTPushFront(plist, 10);

    LTPrint(plist);
    printf("\n");

    LTPopFront(plist);
    LTPrint(plist);



}


void TestList2()
{

    LTNode* plist = LTInit();
    LTPushBack(plist, 1);
    LTPushBack(plist, 2);
    LTPushBack(plist, 3);
    LTPushBack(plist, 4);
    LTPrint(plist);
    printf("\n");
    LTNode* pos = LTFind(plist, 3);
    if (pos)
    {
        LTErase(pos);
    }
    LTPrint(plist);

}

int main()
{
	//TestList1();
    TestList2();

	return 0;
}